package com.honeyms.project.system.usernotice.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.honeyms.framework.aspectj.lang.annotation.Excel;
import com.honeyms.framework.web.domain.BaseEntity;

/**
 * 用户通知关联对象 sys_user_notice
 * 
 * @author honeyms
 * @date 2020-11-25
 */
public class MyNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户通知编号 */
    private Long id;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userId;

    /** 通知编号 */
    @Excel(name = "通知编号")
    private Long noticeId;

    /** 是否已读 */
    @Excel(name = "是否已读")
    private Integer isRead;

    /** 读取时间 */
    @Excel(name = "读取时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date readDate;
    
    @Excel(name = "通知标题")
    private String noticeTitle;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setNoticeId(Long noticeId)
    {
        this.noticeId = noticeId;
    }

    public Long getNoticeId()
    {
        return noticeId;
    }
    public void setIsRead(Integer isRead)
    {
        this.isRead = isRead;
    }

    public Integer getIsRead()
    {
        return isRead;
    }
    public void setReadDate(Date readDate)
    {
        this.readDate = readDate;
    }

    public Date getReadDate()
    {
        return readDate;
    }

    public String getNoticeTitle() {
		return noticeTitle;
	}

	public void setNoticeTitle(String noticeTitle) {
		this.noticeTitle = noticeTitle;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("noticeId", getNoticeId())
            .append("isRead", getIsRead())
            .append("readDate", getReadDate())
            .append("noticeTitle", getNoticeTitle())
            .toString();
    }
}
